home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / helicopter.swf / scripts / frame_5 / PlaceObject2_28_9 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2006-06-13  |  559 b   |  23 lines

  1. onClipEvent(enterFrame){
  2.    if(this._name != "wallBlock" && _root.helicopter.scrollStart == true)
  3.    {
  4.       this._x -= scrollSpeed;
  5.       if(this.hitTest(_root.helicopter))
  6.       {
  7.          _root.helicopter.broken = true;
  8.          _root.helicopter.yspeed = 0;
  9.          _root.helicopter.gravity = 0;
  10.          _root.helicopter.scrollStart = false;
  11.          _root.helicopter.play();
  12.       }
  13.       if(0 >= this._x)
  14.       {
  15.          this.removeMovieClip();
  16.       }
  17.    }
  18.    if(_root.restart == true)
  19.    {
  20.       this.removeMovieClip();
  21.    }
  22. }
  23.